<!--
 * @Author: lusy lucy_202306@163.com
 * @Date: 2022-11-22 10:34:16
 * @LastEditors: lusy lucy_202306@163.com
 * @LastEditTime: 2022-11-28 09:36:09
 * @FilePath: \text\src\index.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!doctype html>
<html lang="zh">
<head>
  <meta charset="utf-8">
  <title>PengeSoft</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
  <app-root></app-root>
  <script>
     (function(doc,win){
        let fn = () => {
            let docEl = doc.documentElement,clientWidth = docEl.clientWidth;
            // if (!clientWidth) return;
            // docEl.style.fontSize = 100 * (clientWidth / 1920) + 'px';
            if(clientWidth >=1920) {
              docEl.style.fontSize =  '10px';
            }
            if(clientWidth<1920) {
              docEl.style.fontSize =  10*(clientWidth / 1920) + 'px';
            }

        }
        if (!doc.addEventListener) return;
        win.addEventListener('resize',fn);
        doc.addEventListener('DOMContentLoaded',fn);
        })(document,window);
  </script>
</body>
</html>
